package My_Stack;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 周斌
 * Date: 2024-03-10
 * Time: 22:16
 */
public class SinglyLinkedTest2 {
    public static void main(String[] args) {
        SinglyLinkedStack singlyLinkedStack = new SinglyLinkedStack();
        singlyLinkedStack.push(1);
        singlyLinkedStack.push(2);
        singlyLinkedStack.push(3);
        System.out.println(singlyLinkedStack.pop());
        System.out.println(singlyLinkedStack.peek());
    }
}
